import { createRouter, createWebHistory } from 'vue-router'

//路由组件懒加载
const Login = () => import('@/views/Auth/Login.vue')
const ParentManagementPage = () => import('@/views/Content/Parent_Management_Page.vue')

const routes = [
    {
        path: '/',
        name: 'Home',
        component: () => import('@/views/Index.vue')
    },
    {
        path: '/login',
        name: 'Login',
        component: Login
    },
    {
        path: '/parent_management_page',
        name: 'ParentManagementPage',
        component: ParentManagementPage
    },
    {
        path: '/studentLearning.vue',
        name: 'StudentLearning',
        component: () => import('@/views/Content/StudentLearning.vue')
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router